import React from 'react'
import { Button, Result } from 'antd';
import {useNavigate} from 'react-router-dom';
export default function Over(props:any) {
  let navigate = useNavigate();
  return (
    <div>
        <Result
    status="success"
    title="添加商品成功"
    extra={[
      <Button onClick={()=>{
        navigate("/layout/goods")
      }}>
        商品列表
      </Button>,
      <Button type='primary' onClick={()=>{
        props.agin();
      }}>再次添加</Button>,
    ]}
  />
    </div>
  )
}
